execs().with_stderr(&format!("\
[COMPILING] foo v0.5.0 ({})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]foo-[..]", p.url()))
+[RUNNING] target[..]release[..]foo-[..][EXE]", p.url()))
.with_stdout("
running 1 test
test bench_hello ... bench: [..] 0 ns/iter (+/- 0)
.with_stderr(format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]bin2[..]
+[RUNNING] target[..]release[..]bin2-[..][EXE]
", dir = prj.url()))
.with_stdout("
running 1 test
[COMPILING] foo v0.5.0 ({url})
[RUNNING] `rustc src[..]foo.rs [..]`
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] `[..]target[..]release[..]foo-[..] hello --bench`", url = p.url()))
+[RUNNING] `[..]target[..]release[..]foo-[..][EXE] hello --bench`", url = p.url()))
.with_stdout("
running 1 test
test bench_hello ... bench: [..] 0 ns/iter (+/- 0)
.with_stderr_contains(format!("\
[COMPILING] foo v0.5.0 ({})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]foo-[..]
+[RUNNING] target[..]release[..]foo-[..][EXE]
thread '[..]' panicked at 'assertion failed: \
`(left == right)` (left: \
`\"hello\"`, right: `\"nope\"`)', src[..]foo.rs:14
execs().with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]baz-[..]
-[RUNNING] target[..]release[..]foo-[..]", p.url()))
+[RUNNING] target[..]release[..]baz-[..][EXE]
+[RUNNING] target[..]release[..]foo-[..][EXE]", p.url()))
.with_stdout("
running 1 test
test bin_bench ... bench: [..] 0 ns/iter (+/- 0)
[COMPILING] foo v0.0.1 ([..])
[COMPILING] bar v0.0.1 ({dir})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]", dir = p.url()))
+[RUNNING] target[..]release[..]deps[..]bar-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test bar_bench ... bench: [..] 0 ns/iter (+/- 0)
execs().with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]bench-[..]
-[RUNNING] target[..]release[..]foo-[..]", p.url()))
+[RUNNING] target[..]release[..]bench-[..][EXE]
+[RUNNING] target[..]release[..]foo-[..][EXE]", p.url()))
.with_stdout("
running 1 test
test external_bench ... bench: [..] 0 ns/iter (+/- 0)
execs().with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]external-[..]
-[RUNNING] target[..]release[..]foo-[..]", p.url()))
+[RUNNING] target[..]release[..]external-[..][EXE]
+[RUNNING] target[..]release[..]foo-[..][EXE]", p.url()))
.with_stdout("
running 1 test
test external_bench ... bench: [..] 0 ns/iter (+/- 0)
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]foo-[..]", dir = p.url()))
+[RUNNING] target[..]release[..]foo-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test bar ... bench: [..] 0 ns/iter (+/- 0)
assert_that(p.cargo("bench").arg("foo"),
execs().with_status(0)
.with_stderr("[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]foo-[..]")
+[RUNNING] target[..]release[..]foo-[..][EXE]")
.with_stdout("
running 1 test
test foo ... bench: [..] 0 ns/iter (+/- 0)
execs().with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]foo-[..]
-[RUNNING] target[..]release[..]foo-[..]", p.url()))
+[RUNNING] target[..]release[..]foo-[..][EXE]
+[RUNNING] target[..]release[..]foo-[..][EXE]", p.url()))
.with_stdout("
running 1 test
test [..] ... bench: [..] 0 ns/iter (+/- 0)
.with_stderr(&format!("\
[COMPILING] syntax v0.0.1 ({dir})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]bench-[..]
-[RUNNING] target[..]release[..]syntax-[..]", dir = p.url()))
+[RUNNING] target[..]release[..]bench-[..][EXE]
+[RUNNING] target[..]release[..]syntax-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test bench ... bench: [..] 0 ns/iter (+/- 0)
.with_stderr(&format!("\
[COMPILING] syntax v0.0.1 ({dir})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]syntax-[..]", dir = p.url()))
+[RUNNING] target[..]release[..]syntax-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test bench ... bench: [..] 0 ns/iter (+/- 0)
[RUNNING] [..] -C opt-level=3 [..]
[RUNNING] [..] -C opt-level=3 [..]
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] [..]target[..]release[..]bench-[..]
-[RUNNING] [..]target[..]release[..]foo-[..]", dir = p.url()))
+[RUNNING] [..]target[..]release[..]bench-[..][EXE]
+[RUNNING] [..]target[..]release[..]foo-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test foo ... bench: [..] 0 ns/iter (+/- 0)
[FRESH] bar v0.0.1 ({dir}/bar)
[FRESH] foo v0.0.1 ({dir})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] [..]target[..]release[..]bench-[..]
-[RUNNING] [..]target[..]release[..]foo-[..]", dir = p.url()))
+[RUNNING] [..]target[..]release[..]bench-[..][EXE]
+[RUNNING] [..]target[..]release[..]foo-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test foo ... bench: [..] 0 ns/iter (+/- 0)
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]foo-[..]", dir = p.url()))
+[RUNNING] target[..]release[..]foo-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test foo ... bench: [..] 0 ns/iter (+/- 0)
assert_that(p.cargo("bench"),
execs().with_status(0)
.with_stderr("[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] target[..]release[..]foo-[..]")
+[RUNNING] target[..]release[..]foo-[..][EXE]")
.with_stdout("
running 1 test
test foo ... bench: [..] 0 ns/iter (+/- 0)
[RUNNING] `rustc [..]`
[RUNNING] `rustc [..]`
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] `{dir}[..]target[..]release[..]testb1-[..] --bench`
-[RUNNING] `{dir}[..]target[..]release[..]testbench-[..] --bench`",
+[RUNNING] `{dir}[..]target[..]release[..]testb1-[..][EXE] --bench`
+[RUNNING] `{dir}[..]target[..]release[..]testbench-[..][EXE] --bench`",
dir = p.root().display(), url = p.url()))
.with_stdout("
running 1 test
.with_stderr("\
[COMPILING] foo v0.1.0 ([..])
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]debug[..]b-[..]")
+[RUNNING] target[..]debug[..]b-[..][EXE]")
.with_stdout("
running 1 test
test foo ... ok
assert_that(p.cargo_process("bench").arg("-p").arg("bar").arg("-p").arg("baz"),
execs().with_status(0)
.with_stderr_contains("\
-[RUNNING] target[..]release[..]bbaz-[..]")
+[RUNNING] target[..]release[..]bbaz-[..][EXE]")
.with_stdout_contains("
running 1 test
test bench_baz ... bench: 0 ns/iter (+/- 0)
test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
")
.with_stderr_contains("\
-[RUNNING] target[..]release[..]bbar-[..]")
+[RUNNING] target[..]release[..]bbar-[..][EXE]")
.with_stdout_contains("
running 1 test
test bench_bar ... bench: 0 ns/iter (+/- 0)
.with_stderr(&format!("\
[COMPILING] foo v0.5.0 ({url})
[RUNNING] `rustc build.rs --crate-name build_script_build --crate-type bin [..]`
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[ERROR] failed to run custom build command for `foo v0.5.0 ({url})`
process didn't exit successfully: `[..]build-script-build[..]` (exit code: 101)",
url = p.url())));
execs().with_status(0)
.with_stderr("\
[COMPILING] foo v0.5.0 (file://[..])
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc [..] --crate-name foo [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
"));
execs().with_status(0)
.with_stderr("\
[COMPILING] foo v0.5.0 (file://[..])
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc [..] --crate-name foo [..]`
[RUNNING] `rustc [..] --crate-name foo [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `[..]foo-[..][..]`
+[RUNNING] `[..]foo-[..][EXE]`
[DOCTEST] foo
[RUNNING] `rustdoc --test [..]`")
.with_stdout("
.with_stderr("\
[COMPILING] foo v0.5.0 (file://[..])
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `target[..]foo[..]`
+[RUNNING] `target[..]foo[EXE]`
"));
}
[RUNNING] `rustc [..] --crate-name a [..]`
[COMPILING] foo v0.5.0 (file://[..])
[RUNNING] `rustc build.rs [..] --extern a=[..]`
-[RUNNING] `[..]foo-[..]build-script-build[..]`
+[RUNNING] `[..]foo-[..]build-script-build[EXE]`
[RUNNING] `rustc [..] --crate-name foo [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
"));
[RUNNING] `rustc [..] --crate-name b [..]`
[COMPILING] a v0.5.0 (file://[..])
[RUNNING] `rustc a[..]build.rs [..] --extern b=[..]`
-[RUNNING] `[..]a-[..]build-script-build[..]`
+[RUNNING] `[..]a-[..]build-script-build[EXE]`
[RUNNING] `rustc [..]lib.rs --crate-name a --crate-type lib -g \
-C metadata=[..] \
--out-dir [..]target[..]deps --emit=dep-info,link \
-g -C metadata=[..] --out-dir [..] --emit=dep-info,link \
-L [..]target[..]deps \
--extern a=[..]liba[..].rlib`
-[RUNNING] `[..]foo-[..]build-script-build[..]`
+[RUNNING] `[..]foo-[..]build-script-build[EXE]`
[RUNNING] `rustc [..]lib.rs --crate-name foo --crate-type lib -g \
-C metadata=[..] \
--out-dir [..] --emit=dep-info,link \
.with_stderr_contains("\
[COMPILING] foo v0.5.0 (file://[..])
[RUNNING] `rustc build.rs [..]`
-[RUNNING] `[..]foo-[..]build-script-build[..]`
+[RUNNING] `[..]foo-[..]build-script-build[EXE]`
[RUNNING] `rustc [..] --crate-name foo [..] -L foo -l static=foo`
[ERROR] could not find native static library [..]
"));
.with_stderr_contains("\
[COMPILING] foo v0.5.0 (file://[..])
[RUNNING] `rustc build.rs [..]`
-[RUNNING] `[..]foo-[..]build-script-build[..]`
+[RUNNING] `[..]foo-[..]build-script-build[EXE]`
[RUNNING] `rustc [..] --crate-name foo [..] -L foo -l static=foo`
[ERROR] could not find native static library [..]
"));
execs().with_stderr(format!("\
[COMPILING] foo v0.0.1 ({dir})
[RUNNING] [..] build.rs [..]
-[RUNNING] [..]build-script-build[..]
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] [..] --cfg foo[..]
[RUNNING] [..] --cfg foo[..]
[RUNNING] [..] --cfg foo[..]
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] [..]foo-[..]
-[RUNNING] [..]test-[..]
+[RUNNING] [..]foo-[..][EXE]
+[RUNNING] [..]test-[..][EXE]
[DOCTEST] foo
[RUNNING] [..] --cfg foo[..]", dir = p.url()))
.with_stdout("
[RUNNING] `[..]`
[RUNNING] `[..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] [..]foo-[..]
-[RUNNING] [..]test-[..]
+[RUNNING] [..]foo-[..][EXE]
+[RUNNING] [..]test-[..][EXE]
[DOCTEST] foo
[RUNNING] [..] --cfg foo[..]", dir = p.url()))
.with_stdout("
.with_stderr("\
[COMPILING] a v0.5.0 ([..]
[RUNNING] `rustc a[..]build.rs [..]`
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc a[..]src[..]lib.rs [..] -L test[..]`
[COMPILING] b v0.5.0 ([..]
[RUNNING] `rustc b[..]src[..]lib.rs [..] -L test[..]`
[RUNNING] `rustc src[..]lib.rs [..] -L test[..]`
[RUNNING] `rustc tests[..]foo.rs [..] -L test[..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `[..]foo-[..]`")
+[RUNNING] `[..]foo-[..][EXE]`")
.with_stdout("
running 0 tests
[COMPILING] b v0.5.0 ([..]
[RUNNING] `rustc b[..]src[..]lib.rs [..] -L test[..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `[..]b-[..]`")
+[RUNNING] `[..]b-[..][EXE]`")
.with_stdout("
running 0 tests
assert_that(p.cargo("build").arg("-v"),
execs().with_status(0).with_stderr("\
[COMPILING] a v0.5.0 ([..])
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc src[..]lib.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
"));
assert_that(p.cargo("build").arg("-v"),
execs().with_status(0).with_stderr("\
[COMPILING] a v0.5.0 ([..])
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc src[..]lib.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
"));
assert_that(p.cargo("build").arg("-v"),
execs().with_status(0).with_stderr("\
[COMPILING] a v0.5.0 ([..])
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc src[..]lib.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
"));
assert_that(p.cargo("build").arg("-v"),
execs().with_status(0).with_stderr("\
[COMPILING] a v0.5.0 ([..])
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc src[..]lib.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
"));
("[INSTALLING]", " Installing"),
("[REPLACING]", " Replacing"),
("[UNPACKING]", " Unpacking"),
+ ("[EXE]", if cfg!(windows) {".exe"} else {""}),
];
let mut result = input.to_owned();
for &(pat, subst) in macros.iter() {
execs().with_status(0).with_stderr("\
[COMPILING] foo v0.0.1 ([..])
[RUNNING] `rustc build.rs [..]`
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc src[..]main.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
"));
.with_stderr(&format!("\
[COMPILING] foo v0.0.0 ({foo})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]{triple}[..]bar-[..]
-[RUNNING] target[..]{triple}[..]foo-[..]", foo = p.url(), triple = target))
+[RUNNING] target[..]{triple}[..]bar-[..][EXE]
+[RUNNING] target[..]{triple}[..]foo-[..][EXE]", foo = p.url(), triple = target))
.with_stdout("
running 1 test
test test ... ok
let host_output = format!("\
[COMPILING] foo v0.0.0 ({foo})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo
", foo = p.url());
.with_stderr(&format!("\
[COMPILING] foo v0.0.0 ({foo})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]{triple}[..]foo-[..]
+[RUNNING] target[..]{triple}[..]foo-[..][EXE]
", foo = p.url(), triple = target)));
}
[RUNNING] `rustc d1[..]build.rs [..] --out-dir {dir}[..]target[..]build[..]d1-[..]`",
dir = p.root().display()))
.with_stderr_contains(&format!("\
-[RUNNING] `{dir}[..]target[..]build[..]d1-[..]build-script-build`",
+[RUNNING] `{dir}[..]target[..]build[..]d1-[..]build-script-build[EXE]`",
dir = p.root().display()))
.with_stderr_contains("\
[RUNNING] `rustc d1[..]src[..]lib.rs [..]`")
.with_stderr("\
[COMPILING] foo v0.0.1 ([..])
[RUNNING] `rustc build.rs [..]`
-[RUNNING] `[..]build-script-build[..]`
+[RUNNING] `[..]build-script-build[EXE]`
[RUNNING] `rustc src[..]lib.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
"));
[RUNNING] `rustc d1[..]src[..]lib.rs [..]`
[COMPILING] foo v0.0.1 ([..])
[RUNNING] `rustc build.rs [..]`
-[RUNNING] `{dir}[..]target[..]build[..]foo-[..]build-script-build`
+[RUNNING] `{dir}[..]target[..]build[..]foo-[..]build-script-build[EXE]`
[RUNNING] `rustc src[..]lib.rs [..] --target {target} [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
", dir = p.root().display(), target = target)));
[COMPILING] foo v0.5.0 ([..])\n\
[FINISHED] debug [unoptimized + debuginfo] target(s) in \
[..]\n\
- [RUNNING] `target[..]foo[..]`\n")
+ [RUNNING] `target[..]foo[EXE]`\n")
.with_stdout("project2\n")
.with_status(0));
[COMPILING] foo v0.5.0 ([..])\n\
[FINISHED] debug [unoptimized + debuginfo] target(s) in \
[..]\n\
- [RUNNING] `target[..]foo[..]`\n")
+ [RUNNING] `target[..]foo[EXE]`\n")
.with_stdout("project3\n")
.with_status(0));
}
[COMPILING] [..] v0.5.0 ([..])
[COMPILING] [..] v0.5.0 ([..]
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]")
+[RUNNING] target[..]foo-[..][EXE]")
.with_stdout("
running 1 test
test tests::foo ... ok
[COMPILING] [..] v0.5.0 ([..])
[COMPILING] [..] v0.5.0 ([..])
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]")
+[RUNNING] target[..]foo-[..][EXE]")
.with_stdout("
running 0 tests
[COMPILING] [..] v0.5.0 ({url}[..])
[COMPILING] [..] v0.5.0 ({url}[..])
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]", url = p.url()))
+[RUNNING] target[..]foo-[..][EXE]", url = p.url()))
.with_stdout("
running 0 tests
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `target{sep}debug{sep}foo[..]`", dir = path2url(p.root()), sep = SEP))
+[RUNNING] `target{sep}debug{sep}foo[EXE]`", dir = path2url(p.root()), sep = SEP))
.with_stdout("\
hello
"));
[RUNNING] `rustc src[..]lib.rs [..]`
[RUNNING] `rustc src[..]a.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `target{sep}debug{sep}a[..]`", dir = path2url(p.root()), sep = SEP))
+[RUNNING] `target{sep}debug{sep}a[EXE]`", dir = path2url(p.root()), sep = SEP))
.with_stdout("\
hello a.rs
"));
[COMPILING] foo v0.0.1 ([..])
[RUNNING] `rustc src[..]b.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `target{sep}debug{sep}b[..]`", sep = SEP))
+[RUNNING] `target{sep}debug{sep}b[EXE]`", sep = SEP))
.with_stdout("\
hello b.rs
"));
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `target{sep}debug{sep}examples{sep}a[..]`", dir = path2url(p.root()), sep = SEP))
+[RUNNING] `target{sep}debug{sep}examples{sep}a[EXE]`", dir = path2url(p.root()), sep = SEP))
.with_stdout("\
example
"));
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `target{sep}debug{sep}main[..]`", dir = path2url(p.root()), sep = SEP))
+[RUNNING] `target{sep}debug{sep}main[EXE]`", dir = path2url(p.root()), sep = SEP))
.with_stdout("\
hello main.rs
"));
-L dependency={dir}{sep}target{sep}release{sep}deps \
--extern bar={dir}{sep}target{sep}release{sep}deps{sep}libbar.rlib`
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] `target{sep}release{sep}examples{sep}a[..]`
+[RUNNING] `target{sep}release{sep}examples{sep}a[EXE]`
",
dir = p.root().display(),
url = path2url(p.root()),
-L dependency={dir}{sep}target{sep}debug{sep}deps \
--extern bar={dir}{sep}target{sep}debug{sep}deps{sep}libbar.rlib`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `target{sep}debug{sep}examples{sep}a[..]`
+[RUNNING] `target{sep}debug{sep}examples{sep}a[EXE]`
",
dir = p.root().display(),
url = path2url(p.root()),
execs().with_status(0).with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] `target{sep}release{sep}foo[..]`
+[RUNNING] `target{sep}release{sep}foo[EXE]`
",
dir = path2url(p.root()),
sep = SEP)));
execs().with_status(0)
.with_stderr(&format!("\
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]\n\
-[RUNNING] `.{sep}foo[..]`", sep = SEP))
+[RUNNING] `.{sep}foo[EXE]`", sep = SEP))
.with_stdout("\
hello
"));
execs().with_stderr(format!("\
[COMPILING] foo v0.5.0 ({})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]", p.url()))
+[RUNNING] target[..]foo-[..][EXE]", p.url()))
.with_stdout("
running 1 test
test test_hello ... ok
[RUNNING] [..] -C opt-level=3 [..]
[RUNNING] [..] -C opt-level=3 [..]
[FINISHED] release [optimized] target(s) in [..]
-[RUNNING] `[..]target[..]foo-[..]`
-[RUNNING] `[..]target[..]test-[..]`
+[RUNNING] `[..]target[..]foo-[..][EXE]`
+[RUNNING] `[..]target[..]test-[..][EXE]`
[DOCTEST] foo
[RUNNING] `rustdoc --test [..]lib.rs[..]`", dir = p.url()))
.with_stdout("
[COMPILING] foo v0.5.0 ({url})
[RUNNING] `rustc src[..]foo.rs [..]`
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] `[..]target[..]foo-[..] hello`", url = p.url()))
+[RUNNING] `[..]target[..]foo-[..][EXE] hello`", url = p.url()))
.with_stdout("
running 1 test
test test_hello ... ok
execs().with_stderr(format!("\
[COMPILING] foo v0.5.0 ({url})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]foo-[..][EXE]
[ERROR] test failed", url = p.url()))
.with_stdout_contains("
running 1 test
execs().with_stderr(format!("\
[COMPILING] foo v0.0.1 ({})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]baz-[..]
-[RUNNING] target[..]foo[..]
+[RUNNING] target[..]baz-[..][EXE]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo", p.url()))
.with_stdout("
running 1 test
execs().with_stderr(format!("\
[COMPILING] foo v0.0.1 ({})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
-[RUNNING] target[..]test-[..]
+[RUNNING] target[..]foo-[..][EXE]
+[RUNNING] target[..]test-[..][EXE]
[DOCTEST] foo", p.url()))
.with_stdout("
running 1 test
execs().with_stderr(format!("\
[COMPILING] foo v0.0.1 ({})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]external-[..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]external-[..][EXE]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo", p.url()))
.with_stdout("
running 1 test
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo", dir = p.url()))
.with_stdout("
running 1 test
execs().with_status(0)
.with_stderr("\
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo")
.with_stdout("
running 1 test
execs().with_stderr(format!("\
[COMPILING] foo v0.0.1 ({})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]foo-[..][EXE]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo", p.url()))
.with_stdout("
running 1 test
.with_stderr(&format!("\
[COMPILING] syntax v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]syntax-[..]
-[RUNNING] target[..]test-[..]
+[RUNNING] target[..]syntax-[..][EXE]
+[RUNNING] target[..]test-[..][EXE]
[DOCTEST] syntax", dir = p.url()))
.with_stdout("
running 1 test
.with_stderr(&format!("\
[COMPILING] syntax v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]syntax-[..]", dir = p.url()))
+[RUNNING] target[..]syntax-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test test ... ok
.with_stderr(&format!("\
[COMPILING] syntax v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]syntax-[..]", dir = p.url()))
+[RUNNING] target[..]syntax-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test test ... ok
[COMPILING] bar v0.0.1 ({dir}/bar)
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
-[RUNNING] target[..]test-[..]", dir = p.url()))
+[RUNNING] target[..]foo-[..][EXE]
+[RUNNING] target[..]test-[..][EXE]", dir = p.url()))
.with_stdout("
running 1 test
test foo ... ok
execs().with_status(0)
.with_stderr("\
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
-[RUNNING] target[..]test-[..]")
+[RUNNING] target[..]foo-[..][EXE]
+[RUNNING] target[..]test-[..][EXE]")
.with_stdout("
running 1 test
test foo ... ok
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo", dir = p.url()))
.with_stdout("
running 1 test
execs().with_status(0)
.with_stderr("\
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo")
.with_stdout("
running 1 test
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]
+[RUNNING] target[..]foo-[..][EXE]
[DOCTEST] foo", dir = p.url()))
.with_stdout("
running 1 test
.with_stderr(format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]bin2-[..]", dir = prj.url()))
+[RUNNING] target[..]bin2-[..][EXE]", dir = prj.url()))
.with_stdout("
running 1 test
test test2 ... ok
.with_stderr(format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]b-[..]", dir = prj.url()))
+[RUNNING] target[..]b-[..][EXE]", dir = prj.url()))
.with_stdout("
running 1 test
test test_b ... ok
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]bar-[..]
+[RUNNING] target[..]bar-[..][EXE]
",
dir = p.url())));
}
.with_stderr(&format!("\
[COMPILING] d1 v0.0.1 ({dir}/d1)
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]d1-[..]
-[RUNNING] target[..]d1-[..]", dir = p.url()))
+[RUNNING] target[..]d1-[..][EXE]
+[RUNNING] target[..]d1-[..][EXE]", dir = p.url()))
.with_stdout("
running 0 tests
.with_stderr(&format!("\
[COMPILING] d2 v0.0.1 ({dir}/d2)
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]d2-[..]
-[RUNNING] target[..]d2-[..]", dir = p.url()))
+[RUNNING] target[..]d2-[..][EXE]
+[RUNNING] target[..]d2-[..][EXE]", dir = p.url()))
.with_stdout("
running 0 tests
.with_stderr(&format!("\
[COMPILING] foo v0.0.1 ({dir})
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo-[..]", dir = p.url()))
+[RUNNING] target[..]foo-[..][EXE]", dir = p.url()))
.with_stdout("
running 0 tests
.with_stderr(&format!("\
[COMPILING] d1 v0.0.1 ({dir}/d1)
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]deps[..]d1[..]
+[RUNNING] target[..]deps[..]d1[..][EXE]
[DOCTEST] d1", dir = p.url()))
.with_stdout("
running 0 tests
.with_stderr("\
[COMPILING] foo [..]
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo[..]
+[RUNNING] target[..]foo[..][EXE]
[DOCTEST] foo")
.with_stdout("
running 0 tests
execs().with_stderr("\
[COMPILING] foo v0.0.1 ([..])
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]debug[..]foo[..]")
+[RUNNING] target[..]debug[..]foo[..][EXE]")
.with_stdout("
running 0 tests
[COMPILING] foo v0.0.1 ([..])
[COMPILING] bar v0.0.1 ([..])
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo[..]
+[RUNNING] target[..]foo[..][EXE]
[DOCTEST] foo")
.with_stdout("
running 0 tests
.with_stderr_contains("\
[COMPILING] foo v0.0.1 ([..])
[FINISHED] debug [unoptimized + debuginfo] target(s) in [..]
-[RUNNING] target[..]foo[..]
-[RUNNING] target[..]test_add_one[..]")
+[RUNNING] target[..]foo-[..][EXE]
+[RUNNING] target[..]test_add_one-[..][EXE]")
.with_stdout_contains("
running 0 tests
")
.with_stderr_contains("\
-[RUNNING] target[..]test_sub_one[..]
+[RUNNING] target[..]test_sub_one-[..][EXE]
[DOCTEST] foo")
.with_stdout_contains("\
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured
assert_that(p.cargo("test").arg("-p").arg("d1").arg("-p").arg("d2"),
execs().with_status(0)
.with_stderr_contains("\
-[RUNNING] target[..]debug[..]d1-[..]")
+[RUNNING] target[..]debug[..]d1-[..][EXE]")
.with_stdout_contains("
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
")
.with_stderr_contains("\
-[RUNNING] target[..]debug[..]d2-[..]")
+[RUNNING] target[..]debug[..]d2-[..][EXE]")
.with_stdout_contains("
running 0 tests